package cn.lzy.taskmanagement.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author WeiKaiYe
 * @creat 2023/10/21-9:49
 * 获取时间方法类
 **/

public class DataUtils {

    public final static String data1 = "yyyy-MM-dd HH:mm:ss";

    public final static String data2 = "yyyy-MM-dd ";

    public static String getData(String dataType) {
        java.util.Date day = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat(dataType);
        return sdf.format(day);

    }
}
